<%@ taglib prefix="s" 	uri="/struts-tags"%>
<%@ taglib prefix="c" 	uri="http://java.sun.com/jsp/jstl/core"%> 

	<link rel="stylesheet" href="styles/form-input.css" type="text/css" media="all" />
	<link type="text/css" rel="stylesheet" href="js/jquery/css/ui-lightness/jquery-ui-1.8.16.custom.css"/>
	<script type="text/javascript" src="js/jquery/jquery-1.6.2.min.js"></script>
	<script type="text/javascript" src="js/jquery/jquery-ui-1.8.16.custom.min.js"></script>
	<script type="text/javascript">
		$(function() { 
			$("#birthDate").datepicker({ 	dateFormat: 'd MM, yy', changeMonth: true,	changeYear: true });
			$("#expDate").datepicker({ 		dateFormat: 'd MM, yy', changeMonth: true,	changeYear: true });
		});
		$(document).ready(function() {
    		$("button").button();
  		});
		function onlyNumbers(evt)
		{
		    var e = event || evt; // for trans-browser compatibility
		    var charCode = e.which || e.keyCode;

		    //if (charCode > 31 && ((charCode < 48 || charCode > 57) || charCode !=109))
		    if (charCode > 31 && (charCode < 48 || charCode > 57))
		        return false;

		    return true;
		}
	</script>

	<div class="error-text"><s:actionerror /></div>
	<div class="error-text"><s:fielderror /></div>
	<div class="message-text"><s:actionmessage /></div>
	${areaName}
	
	<div>
        <div class="form-header">NASABAH INDIVIDUAL</div>
	  	<s:form theme="simple" method="POST">
			<s:hidden name="masterSid" value="%{master.sid}"/>
			
      			<table class="table-form">
		    	<tr>
		            <td><label>CIF</label></td>
	            	<td><s:textfield value="%{master.CIF.cifSid}" size="6" maxlength="6" cssClass="textbox" disabled="true"/></td>
		        </tr>
		        <tr>
		            <td><label>CIF Open Date</label></td>
	            	<td><s:textfield value="%{OPEN_DATE}" disabled="true"/></td>
		        </tr>
		    	<tr>
		            <td><label>Nama Lengkap*</label></td>
	            	<td><s:textfield name="CUST_FULL_NAME" value="%{master.CIF.CUST_FULL_NAME}" size="50" maxlength="50" cssClass="textbox" disabled="true"/></td>
		        </tr>	            
<!-- PARENT_COUNTRY -->
				<tr>
	            	<td><label>Parent Country</label></td>
            		<td><s:select name="PARENT_COUNTRY" list="countryMap" value="%{master.CIF.PARENT_COUNTRY}" headerKey="" headerValue="Pilih Negara" disabled="true"/></td>
	            </tr>
		        <tr>
	            	<td><label>Jenis Kelamin*</label></td>
            		<td><s:radio name="GENDER" list="#{'L':'Laki laki', 'P':'Perempuan'}" value="%{master.CIF.GENDER}" disabled="true"/></td>
	            </tr>
<!-- ID_TYPE -->
				<tr>
	            	<td><label>Kode Identitas*</label></td>
	            	<td><s:select name="ID_TYPE" list="idTypeMap" value="%{master.CIF.ID_TYPE}" headerKey="" headerValue="Pilih Kode Identitas" disabled="true"/></td>
	            </tr>
	            <tr>
		            <td><label>Nomor Identitas*</label></td>
	            	<td><s:textfield name="ID_NUMBER" value="%{master.CIF.ID_NUMBER}" size="40" maxlength="40" cssClass="textbox" disabled="true"/></td>
		        </tr>
		        <tr>
	            	<td><label>Tanggal Berakhir Kartu Identitas*</label></td>
	        		<td><s:textfield id="expDate" name="ID_EXPIRED" value="%{ID_EXP_DATE}" disabled="true"/></td>
	            </tr>
		        <tr>
	            	<td><label>Tanggal Lahir*</label></td>
	        		<td><s:textfield id="birthDate" name="BIRTH_DATE" value="%{BIRTH_DATE}" disabled="true"/></td>
	            </tr>
		        <tr>
		            <td><label>Tempat Lahir</label></td>
	            	<td><s:textfield name="BIRTH_PLACE" value="%{master.CIF.PLACE_OF_BIRTH}" size="35" maxlength="35" cssClass="textbox" disabled="true"/></td>
		        </tr>
            	<tr>
		            <td><label>NPWP</label></td>
	            	<td><s:textfield name="NPWP" value="%{master.CIF.NPWP}" size="20" maxlength="20" cssClass="textbox" disabled="true"/></td>
		        </tr>
<!-- agama -->
				<tr>
	            	<td><label>Agama*</label></td>
            		<td><s:select name="RELIGION" list="religionMap" value="%{master.CIF.RELIGION}" headerKey="" headerValue="Pilih Agama" disabled="true"/></td>	            		
	            </tr>
<!-- education -->
	            <tr>
	            	<td><label>Pendidikan</label></td>
            		<td><s:select name="EDUCATION" list="eduMap" value="%{master.CIF.EDUCATION}" headerKey="" headerValue="Pilih Pendidikan" disabled="true"/></td>
	            </tr>
<!-- penghasilan -->
	            <tr>
	            	<td><label>Penghasilan*</label></td>
            		<td><s:select name="CURRENT_INCOME" list="currIncomeMap" value="%{master.CIF.CURRENT_INCOME}" headerKey="" headerValue="Pilih Penghasilan" disabled="true"/></td>
	            </tr>
<!-- sumber pendapatan -->
				<tr>
	            	<td><label>Sumber Pendapatan*</label></td>
            		<td><s:select name="SOURCE_INCOME" list="srcIncomeMap" value="%{master.CIF.SOURCE_INCOME}" headerKey="" headerValue="Pilih Sumber Pendapatan" disabled="true"/></td>
	            </tr>
<!-- additional income -->
				<tr>
	            	<td><label>Penghasilan Tambahan</label></td>
            		<td><s:select name="ADDITIONAL_INCOME" list="addIncomeMap" value="%{master.CIF.ADDITIONAL_INCOME}" headerKey="" headerValue="Pilih Penghasilan Tambahan" disabled="true"/></td>		            		
	            </tr>
<!-- tujuan -->
				<tr>
	            	<td><label>Tujuan Penggunaan*</label></td>
            		<td><s:select name="PURPOSE" list="purposeMap" value="%{master.CIF.PURPOSE}" headerKey="" headerValue="Pilih Tujuan Penggunaan" disabled="true"/></td>
	            </tr>
	            <tr>
	            	<td><label>Pekerjaan*</label></td>
            		<td><s:textfield name="PROFESSION" value="%{master.CIF.PROFESSION}" size="35" maxlength="35" cssClass="textbox" disabled="true"/></td>
	            </tr>
	            <tr>
	            	<td><label>Jabatan*</label></td>
            		<td><s:textfield name="JABATAN" value="%{master.CIF.JABATAN}" size="20" maxlength="20" cssClass="textbox" disabled="true"/></td>
	            </tr>
	            <tr>
	            	<td><label>Jenis Usaha Tempat Bekerja</label></td>
            		<td><s:textfield name="JENIS_USAHA" value="%{master.CIF.JENIS_USAHA}" size="35" maxlength="35" cssClass="textbox" disabled="true"/></td>
	            </tr>
<!-- status -->
	            <tr>
	            	<td><label>Marital Status*</label></td>
            		<td><s:select name="MARITAL_STATUS" list="maritalMap" value="%{master.CIF.MARITAL_STATUS}" headerKey="" headerValue="Pilih Status" disabled="true"/></td>		            		
	            </tr>
	            <tr>
	            	<td><label>Nama Ibu Kandung*</label></td>
            		<td><s:textfield name="MOTHER_NAME" value="%{master.CIF.MOTHER_NAME}" size="35" maxlength="35" cssClass="textbox" disabled="true"/></td>
	            </tr>
<!-- gol nasabah -->
				<tr>
	            	<td><label>Golongan Nasabah*</label></td>
            		<td><s:select name="LBU_GOL_NASABAH" list="golNasabahMap" value="%{master.CIF.LBU_GOL_NASABAH}" headerKey="" headerValue="Pilih Golongan Nasabah" disabled="true"/></td>	            		
	            </tr>
	            <tr>
	            	<td><label>Saldo Normal</label></td>
            		<td><s:textfield name="SALDO_NORMAL" value="%{master.CIF.SALDO_NORMAL}" size="15" maxlength="15" cssClass="textbox" onkeypress="return onlyNumbers();" disabled="true"/></td>
	            </tr>
	            <tr>
	            	<td><label>Frekuensi Transaksi Debet*</label></td>
            		<td><s:textfield name="FREQ_TRX_DB" value="%{master.CIF.FREQ_TRX_DB}" size="18" maxlength="18" cssClass="textbox" onkeypress="return onlyNumbers();" disabled="true"/></td>
	            </tr>
	            <tr>
	            	<td><label>Frekuensi Transaksi Kredit*</label></td>
            		<td><s:textfield name="FREQ_TRX_CR" value="%{master.CIF.FREQ_TRX_CR}" size="18" maxlength="18" cssClass="textbox" onkeypress="return onlyNumbers();" disabled="true"/></td>
	            </tr>
	            <tr>
	            	<td><label>Average Transaksi Debet*</label></td>
            		<td><s:textfield name="EST_TRX_NORMAL_DB" value="%{master.CIF.EST_TRX_NORMAL_DB}" size="18" maxlength="18" cssClass="textbox" onkeypress="return onlyNumbers();" disabled="true"/></td>
	            </tr>
	            <tr>
	            	<td><label>Average Transaksi Kredit*</label></td>
            		<td><s:textfield name="EST_TRX_NORMAL_CR" value="%{master.CIF.EST_TRX_NORMAL_CR}" size="18" maxlength="18" cssClass="textbox" onkeypress="return onlyNumbers();" disabled="true"/></td>
	            </tr>
	            <tr>
	            	<td><label>Nama Ahli Waris</label></td>
            		<td><s:textfield name="NAMA_AHLI_WARIS" value="%{master.CIF.NAMA_AHLI_WARIS}" size="30" maxlength="30" cssClass="textbox" disabled="true"/></td>
	            </tr>
	            <tr>
	            	<td><label>Alamat Ahli Waris 1</label></td>
            		<td><s:textfield name="ALAMAT_AHLI_WARIS1" value="%{master.CIF.ALAMAT_AHLI_WARIS1}" size="30" maxlength="30" cssClass="textbox" disabled="true"/></td>
	            </tr>
	            <tr>
	            	<td><label>Alamat Ahli Waris 2</label></td>
            		<td><s:textfield name="ALAMAT_AHLI_WARIS2" value="%{master.CIF.ALAMAT_AHLI_WARIS2}" size="30" maxlength="30" cssClass="textbox" disabled="true"/></td>
	            </tr>
	            <tr>
	            	<td><label>Kota Ahli Waris</label></td>
            		<td><s:textfield name="KOTA_AHLI_WARIS" value="%{master.CIF.KOTA_AHLI_WARIS}" size="15" maxlength="15" cssClass="textbox" disabled="true"/></td>
	            </tr>		            
<!-- hub -->
				<tr>
	            	<td><label>Hubungan Ahli Waris</label></td>
            		<td><s:select name="HUB_AHLI_WARIS" list="hubAhliWarisMap" value="%{master.CIF.HUB_AHLI_WARIS}" headerKey="" headerValue="Pilih Hubungan" disabled="true"/></td>		            		
	            </tr>
	            <tr>
	            	<td><label>Rekening di Bank Lain 1</label></td>
            		<td><s:textfield name="NOREK_BANK_LAIN1" value="%{master.CIF.REK_BANK_LAIN1}" size="20" maxlength="20" cssClass="textbox" disabled="true"/></td>
	            </tr>
	            <tr>
	            	<td><label>Rekening di Bank Lain 2</label></td>
            		<td><s:textfield name="NOREK_BANK_LAIN2" value="%{master.CIF.REK_BANK_LAIN2}" size="20" maxlength="20" cssClass="textbox" disabled="true"/></td>
	            </tr>
	            <tr>
	            	<td><label>Rekening di Bank Lain 3</label></td>
            		<td><s:textfield name="NOREK_BANK_LAIN3" value="%{master.CIF.REK_BANK_LAIN3}" size="20" maxlength="20" cssClass="textbox" disabled="true"/></td>
	            </tr>	
<!-- hr business -->
				<tr>
	            	<td><label>High Risk Business</label></td>
            		<td><s:select name="HR_BUSINESS" list="hrBussMap" value="%{master.CIF.HR_BUSINESS}" headerKey="" headerValue="Pilih HR Bussiness" disabled="true"/></td>		            		
	            </tr>	            		            
<!-- hr country -->
				<tr>
	            	<td><label>High Risk Country</label></td>
            		<td><s:select name="HR_COUNTRIES" list="hrCountryMap" value="%{master.CIF.HR_COUNTRIES}" headerKey="" headerValue="Pilih HR Country" disabled="true"/></td>	            		
	            </tr>
<!-- hr customer -->
				<tr>
	            	<td><label>High Risk Customer</label></td>
            		<td><s:select name="HR_CUSTOMER" list="hrCstMap" value="%{master.CIF.HR_CUSTOMER}" headerKey="" headerValue="Pilih HR Customer" disabled="true"/></td>		            		
	            </tr>
<!-- hr product -->    
				<tr>
	            	<td><label>High Risk Product</label></td>
            		<td><s:select name="HR_PRODUCT" list="hrProductMap" value="%{master.CIF.HR_PRODUCT}" headerKey="" headerValue="Pilih HR Product" disabled="true"/></td>		            		
	            </tr>
            </table>
            <br>
            <table class="table-form">
            	<tr>
	            	<td width="308px"><label>Prime Address (KTP)</label></td>
					<td colspan="2"><s:textfield name="destAddress.address31" value="%{srcAddress.address31}" size="35" maxlength="35" cssClass="textbox" disabled="true"/>*</td>
	            </tr>
	            <tr>
	            	<td></td><td colspan="2"><s:textfield name="destAddress.address32" value="%{srcAddress.address32}" size="35" maxlength="35" cssClass="textbox" disabled="true"/></td>
	            </tr>
	            <tr>
	            	<td></td><td colspan="2"><s:textfield name="destAddress.address33" value="%{srcAddress.address33}" size="35" maxlength="35" cssClass="textbox" disabled="true"/></td>
	            </tr>
	            <tr>
	            	<td></td><td colspan="2"><s:textfield name="destAddress.address34" value="%{srcAddress.address34}" size="35" maxlength="35" cssClass="textbox" disabled="true"/></td>
	            </tr>
	            <tr>
	            	<td></td><td colspan="2"><s:textfield name="destAddress.address35" value="%{srcAddress.address35}" size="35" maxlength="35" cssClass="textbox" disabled="true"/></td>
	            </tr>
	            <tr>
	            	<td></td><td>Post Code&nbsp;&nbsp;&nbsp;<s:textfield name="destAddress.postCode3" value="%{srcAddress.postCode3}" size="6" maxlength="6" cssClass="textbox" disabled="true"/></td>
	            </tr>
	            
				<tr>
	            	<td><label>Address 1 (domicile)</label></td>
					<td colspan="2"><s:textfield name="destAddress.address11" value="%{srcAddress.address11}" size="35" maxlength="35" cssClass="textbox" disabled="true"/></td>
	            </tr>
	            <tr>
	            	<td></td><td colspan="2"><s:textfield name="destAddress.address12" value="%{srcAddress.address12}" size="35" maxlength="35" cssClass="textbox" disabled="true"/></td>
	            </tr>
	            <tr>
	            	<td></td><td colspan="2"><s:textfield name="destAddress.address13" value="%{srcAddress.address13}" size="35" maxlength="35" cssClass="textbox" disabled="true"/></td>
	            </tr>
	            <tr>
	            	<td></td><td colspan="2"><s:textfield name="destAddress.address14" value="%{srcAddress.address14}" size="35" maxlength="35" cssClass="textbox" disabled="true"/></td>
	            </tr>
	            <tr>
	            	<td></td><td colspan="2"><s:textfield name="destAddress.address15" value="%{srcAddress.address15}" size="35" maxlength="35" cssClass="textbox" disabled="true"/></td>
	            </tr>
	            <tr>
	            	<td></td><td>Post Code&nbsp;&nbsp;&nbsp;<s:textfield name="destAddress.postCode1" value="%{srcAddress.postCode1}" size="6" maxlength="6" cssClass="textbox" disabled="true"/></td>
	            </tr>
				
				<tr>
	            	<td><label>Address 2 (office)</label></td>
					<td colspan="2"><s:textfield name="destAddress.address21" value="%{srcAddress.address21}" size="35" maxlength="35" cssClass="textbox" disabled="true"/></td>
	            </tr>
	            <tr>
	            	<td></td><td colspan="2"><s:textfield name="destAddress.address22" value="%{srcAddress.address22}" size="35" maxlength="35" cssClass="textbox" disabled="true"/></td>
	            </tr>
	            <tr>
	            	<td></td><td colspan="2"><s:textfield name="destAddress.address23" value="%{srcAddress.address23}" size="35" maxlength="35" cssClass="textbox" disabled="true"/></td>
	            </tr>
	            <tr>
	            	<td></td><td colspan="2"><s:textfield name="destAddress.address24" value="%{srcAddress.address24}" size="35" maxlength="35" cssClass="textbox" disabled="true"/></td>
	            </tr>
	            <tr>
	            	<td></td><td colspan="2"><s:textfield name="destAddress.address25" value="%{srcAddress.address25}" size="35" maxlength="35" cssClass="textbox" disabled="true"/></td>
	            </tr>
	            <tr>
	            	<td></td><td>Post Code&nbsp;&nbsp;&nbsp;<s:textfield name="destAddress.postCode2" value="%{srcAddress.postCode2}" size="6" maxlength="6" cssClass="textbox" disabled="true"/></td>
	            </tr>
				
				<tr>
	            	<td><label>Address 8 (correspondence)</label></td>
					<td colspan="2"><s:textfield name="destAddress.address81" value="%{srcAddress.address81}" size="35" maxlength="35" cssClass="textbox" disabled="true"/></td>
	            </tr>
	            <tr>
	            	<td></td><td colspan="2"><s:textfield name="destAddress.address82" value="%{srcAddress.address82}" size="35" maxlength="35" cssClass="textbox" disabled="true"/></td>
	            </tr>
	            <tr>
	            	<td></td><td colspan="2"><s:textfield name="destAddress.address83" value="%{srcAddress.address83}" size="35" maxlength="35" cssClass="textbox" disabled="true"/></td>
	            </tr>
	            <tr>
	            	<td></td><td colspan="2"><s:textfield name="destAddress.address84" value="%{srcAddress.address84}" size="35" maxlength="35" cssClass="textbox" disabled="true"/></td>
	            </tr>
	            <tr>
	            	<td></td><td colspan="2"><s:textfield name="destAddress.address85" value="%{srcAddress.address85}" size="35" maxlength="35" cssClass="textbox" disabled="true"/></td>
	            </tr>
	            <tr>
	            	<td></td><td>Post Code&nbsp;&nbsp;&nbsp;<s:textfield name="destAddress.postCode8" value="%{srcAddress.postCode8}" size="6" maxlength="6" cssClass="textbox" disabled="true"/></td>
	            </tr>           	
            </table>
	        <br>
	        <br>
	        <s:submit type="button" action="setOneApprove">Approve</s:submit>
	        <s:submit type="button" action="setOneReject">Reject</s:submit>
        </s:form>
	</div>